import React from 'react';
import { Collapse, Timeline } from 'antd';
const { Panel } = Collapse;

const Home = () => {
      const callback = (key) => {
            console.log(key)
      }
     
      return (
            <div style={{ color: '#fff' }}>
                  <Timeline>
                        <Collapse defaultActiveKey={['1']} onChange={callback}>
                              <Panel header="This is panel header 1" key="1">
                                    <Timeline.Item>Create a services site 2015-09-01</Timeline.Item>
                                    <Timeline.Item>Solve initial network problems 2015-09-01</Timeline.Item>
                                    <Timeline.Item>Technical testing 2015-09-01</Timeline.Item>
                                    <Timeline.Item>Network problems being solved 2015-09-01</Timeline.Item>
                              </Panel>
                              <Panel header="This is panel header 2" key="2">
                                    <p>Create a services site 2015-09-01</p>
                              </Panel>
                              <Panel header="This is panel header 3" key="3">
                                    <p>Technical testing 2015-09-01</p>
                              </Panel>
                        </Collapse>
                  </Timeline>
            </div>
      )
}

export default Home;